﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminMaster.Master" AutoEventWireup="true" CodeBehind="editSellSetting.aspx.cs" Inherits="whatpricemyhouse.Admin.editSellSetting" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        1. You are the</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="YATTID" DataSourceID="LinqDataSource1" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:CommandField ShowEditButton="True" />
                <asp:BoundField DataField="YATTName" HeaderText="Name" 
                    SortExpression="YATTName" />
                <asp:BoundField DataField="YATTDesc" HeaderText="Description" 
                    SortExpression="YATTDesc" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="whatpricemyhouse.LINQ.DataControllerDataContext" 
            EnableUpdate="True" TableName="you_are_the_tables">
        </asp:LinqDataSource>
    </p>
    <p>
        <hr /></p>
    <p>
        Add new:</p>
    <p>
        Name:&nbsp; 
        <asp:TextBox ID="YATNameTxt" runat="server"></asp:TextBox>
&nbsp;Desc:
        <asp:TextBox ID="YATDescTxt" runat="server"></asp:TextBox>
&nbsp;<asp:Button ID="YATAddButton" runat="server" Text="Add" 
            onclick="YATAddButton_Click" />
    </p>
    <p>
        2. Construction</p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="ConstructionID" DataSourceID="LinqDataSource2" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:CommandField ShowEditButton="True" />
                <asp:BoundField DataField="ConstructionName" HeaderText="Construction Name" 
                    SortExpression="ConstructionName" />
                <asp:BoundField DataField="ConstructionDesc" HeaderText="Description" 
                    SortExpression="ConstructionDesc" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
            ContextTypeName="whatpricemyhouse.LINQ.DataControllerDataContext" 
            EnableUpdate="True" TableName="construction_tables">
        </asp:LinqDataSource>
    </p>
    <p>
        Add new:</p>
    <p>
        Name:<asp:TextBox ID="CNameTxt" runat="server"></asp:TextBox>
&nbsp; Desc:
        <asp:TextBox ID="CDescTxt" runat="server"></asp:TextBox>
&nbsp;
        <asp:Button ID="CAddButton" runat="server" onclick="CAddButton_Click" 
            Text="Add" />
    </p>
</asp:Content>
